<div id="fb-root"></div>
<script src="http://connect.facebook.com/ja_JP/all.js"></script>
<?php
//設定を取得
require_once ("fb_setting.php");
// PHP SDKを読み込む
require_once ("facebook-php-sdk-master/src/facebook.php");

class FacebookLogin {

    private $setting;

    function __construct() {
        $this->setting = new Setting();
    }

    private function conectFacebook() {
        $facebook = new Facebook($this->setting->getLicence());

        $params = array('scope' => 'user_photos,friends_photos');
        return $loginUrl = $facebook->getLoginUrl($params);
    }

    public function getLoginUrl() {
        return $loginUrl = $this->conectFacebook();
    }

}

?>